package com.ryl;

import java.util.Arrays;

/**
 * @Date 12:00
 * @Author ryl
 */

public class Demo {
    public static void main(String[] args) {
        int a[]=new int[]{5,7,6,2};
        Arrays.sort ( a );

        System.out.println (Arrays.toString ( a ) );
        for (int aa:a){
            System.out.println (aa );
        }

    }
}
